package com.ddtech.business.course.vo.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @version v1.0
 * @ClassName:CourseLearnHistoryVo description：
 * @author:wei_zhang(xiao)
 * @date: 2023-06-16 10:25
 */
@Data
public class CourseLearnHistoryVo {

    private String id;

    @ApiModelProperty(value = "课程id")
    private String courseId;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "主题图片")
    private String themeImage;

    @ApiModelProperty(value = "当前学习进度,定位功能")
    private Integer resourceDuration;

    @ApiModelProperty(value = "课程时长")
    private Integer duration;

    @ApiModelProperty(value = "是否完成0,未完成 1已完成")
    private Integer isFinish;

    @ApiModelProperty(value = "课程资源ID")
    private String courseResourceId;

    @ApiModelProperty(value = "课程资源名称")
    private String courseResourceName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "课程学习进度")
    private Double nowStudyPercent;
}
